/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javafx179labs.nez.hr.dao.file;

import java.util.List;
import javafx179labs.nez.hr.bean.Department;
import javafx179labs.nez.hr.bean.Employe;
import javafx179labs.nez.hr.bean.Post;
import javafx179labs.nez.hr.bean.Task;

/**
 *
 * @author SSheypak
 */
//DAO = Data access object
//Interface - declare how does it look like, provide different impl.
//your first impl is File storage, then DB will be used
public interface HRDao {

    //List like array, but can be easilly extended. List keeps objects with type Department.
    //Read Generics in Java
    public List<Department> getDepartments();
    public List<Employe> getEmployes();
    public List<Post> getPosts();
    public List<Task> getTasks();

    public void setDepartments(List<Department> list);
    public void setEmployes(List<Employe> list);
    public void setPosts(List<Post> list);
    public void setTasks(List<Task> list);
}
